package com.chenliang.service;

import com.chenliang.domain.Permission;
import com.chenliang.domain.Role;

import java.util.List;

/**
 * @ProjectName: mavenSSM
 * @Package: com.chenliang.service
 * 作用：
 */
public interface IRoleService {

    List<Role> findAll(Integer pgae,Integer pageSize);

    void addRole(Role role)throws Exception;


    Role findById(String id);

    List<Permission> findRoleByPermission(String id);

    void addPermission(String roleId, String[] ids);

}
